import { Address, Entity, Mobile, PrimaryUuid, Realname, Title, Code, CreateDate, Money, AutoIncrementId, Avatar, Uuid, Digdit } from "../utils";


@Entity({
    name: 'fuli_company'
})
export class FuliCompany {
    @PrimaryUuid()
    id: string;

    @AutoIncrementId()
    company_id: number;

    @Uuid({ nullable: true })
    user_id: string;

    @Title()
    title: string;

    @Avatar({ nullable: true })
    avatar: string;

    @Realname()
    realname: string;

    @Mobile()
    mobile: string;

    @Address()
    address: string;

    @Title()
    ticket_title: string;

    @Code()
    ticket_code: string;

    @Mobile()
    ticket_mobile: string;

    @Address()
    ticket_address: string;

    @Code()
    ticket_bankid: string;

    @Code()
    ticket_bank: string;

    @CreateDate()
    create_date: Date;

    @Money({
        default: 0,
        comment: '未消费金额'
    })
    money: number;

    @Money({ default: 0, comment: '累计充值' })
    total_in: number;

    @Money({ default: 0, comment: '累计充值' })
    total_send: number;

    @Money({ default: 0, comment: '累计消费' })
    total_used: number;

    @Money({ default: 0, comment: '已结算金额' })
    has_jiesuan: number;

    @Money({ default: 0, comment: '未结算金额' })
    no_jiesuan: number;

    @Digdit({default: 0, comment: '发放次数'})
    send_time: number;

    @Digdit({default: 0, comment: '发放人数'})
    total_people: number;
}